home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Swar / swar.h < prev    next >
Text File  |  1992-10-30  |  631b  |  44 lines

  1.  
  2. #define NIL_POINTER        0L
  3. #define MAX_PLAYERS        4
  4.  
  5. pascal char        isPressed(unsigned short keyID);
  6. int                RngRnd(short min, short max);
  7.  
  8. typedef struct {
  9.     Point        where;
  10.     Point        vel;
  11.     Boolean        isAlive;
  12.     Boolean        isAccel;
  13.     RGBColor    color;
  14.     short        dir;
  15.     short        anim;
  16. } SHIPREC;
  17.  
  18. #define MAX_SHOTS        25
  19.  
  20. typedef struct {
  21.     Point        where;
  22.     Point        vel;
  23.     Boolean        isAlive;
  24.     RGBColor    color;
  25.     short        lifeSpan;
  26.     short        currentShape;
  27. } SHOTREC;
  28.  
  29. #define MAX_DEBRIS        150
  30.  
  31. typedef struct {
  32.     Point        where;
  33.     Point        vel;
  34.     short        countdown;
  35.     RGBColor    color;
  36. } DEBRISREC;
  37.  
  38. #define MAX_STARS        20
  39.  
  40. typedef struct {
  41.     Point        where;
  42.     RGBColor    color;
  43. } STARREC;
  44.